package cn.javass.dp.memento.example1;

/**
 * 负责保存备忘录的对象
 */
public class Caretaker {

    private Memento memento = null;

    public void saveMemento(Memento memento) {
        this.memento = memento;
    }

    public Memento retriveMemento() {
        return this.memento;
    }
}
